﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameLogic
{
    struct FieldPoint
    {
        private int x, y;

        public int X
        {
            get
            {
                return x;
            }
            set
            {

            }
        }
        public int Y
        {
            get
            {
                return y;
            }
            set
            {

            }
        }

        public FieldPoint(int x, int y)
        {
            this.x = x;
            this.y = y;
        }

        public override bool Equals(object obj)
        {
            var another = (FieldPoint)obj;
            return another.X == X && another.Y == Y;
        }

        public override int GetHashCode()
        {
            return X ^ Y;
        }
    }
}
